import { Table } from 'antd';



function CustomTable() {

    const dataSource = [
        {
            order: '1',
            name: 'John',
            Adv: 95,
            Eng: 80,
            DS:72,
            COA:60,
            OS:80,
            CN:78,
            C2:60,
            DBS:86
        },
        {
            order: '2',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '3',
            name: 'Alex',
            Adv: 83,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '4',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '5',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '6',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '7',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '8',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '9',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '10',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '11',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '12',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },
        {
            order: '13',
            name: 'Smith',
            Adv: 67,
            Eng: 61,
            DS:75,
            COA:66,
            OS:62,
            CN:75,
            C2:70,
            DBS:87
        },

    ];

    const columns = [
        {
            title: '学号',
            dataIndex: 'order',
            key: 'order',
        },
        {
            title: '姓名',
            dataIndex: 'name',
            key: 'name',
        },
        {
            title: 'Adv Math',
            dataIndex: 'Adv',
            key: 'Adv',
        },
        {
            title: 'Eng',
            dataIndex: 'Eng',
            key: 'Eng',
        },
        {
            title: 'DS',
            dataIndex: 'DS',
            key: 'DS',
        },
        {
            title: 'COA',
            dataIndex: 'COA',
            key: 'COA',
        },
        {
            title: 'OS',
            dataIndex: 'OS',
            key: 'OS',
        },
        {
            title: 'CN',
            dataIndex: 'CN',
            key: 'CN',
        },
        {
            title: 'C++',
            dataIndex: 'C2',
            key: 'C2',
        },
        {
            title: 'DBS',
            dataIndex: 'DBS',
            key: 'DBS',
        },
    ];

    return (
        <div>
            <Table dataSource={dataSource} columns={columns} />
        </div>
    );
}

export default CustomTable;
